package com.wuzuqing.android.eightdiagrams.model;

/**
 * 作者：士元
 * 时间：2019/8/9 13:26
 * 邮箱：wuzuqing@linghit.com
 * 说明：
 */
public class EightDagramsInfoModel implements Cloneable {
    /**
     * 卦ID
     */
    private int eightDiagramsId;
    /**
     * 卦名 乾
     */
    private String eightDiagramsName;

    /**
     * 上八卦
     */
    private int upperEightDiagrams;
    /**
     * 下八卦
     */
    private int downEightDiagrams;


    private String title;

    private int dynamicYao = -1;

    public void setDynamicYao(int dynamicYao) {
        this.dynamicYao = dynamicYao;
    }

    public int getDynamicYao() {
        return dynamicYao;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getEightDiagramsId() {
        return eightDiagramsId;
    }

    public void setEightDiagramsId(int eightDiagramsId) {
        this.eightDiagramsId = eightDiagramsId;
    }

    public String getEightDiagramsName() {
        return eightDiagramsName;
    }

    public void setEightDiagramsName(String eightDiagramsName) {
        this.eightDiagramsName = eightDiagramsName;
    }

    public int getUpperEightDiagrams() {
        return upperEightDiagrams;
    }

    public void setUpperEightDiagrams(int upperEightDiagrams) {
        this.upperEightDiagrams = upperEightDiagrams;
    }

    public int getDownEightDiagrams() {
        return downEightDiagrams;
    }

    public void setDownEightDiagrams(int downEightDiagrams) {
        this.downEightDiagrams = downEightDiagrams;
    }

    @Override
    public String toString() {
        return "结果:" + title +
                "\t第" + eightDiagramsId +
                "卦\t挂名:" + eightDiagramsName +
                "\t上卦:" + upperEightDiagrams +
                "\t下挂:" + downEightDiagrams +
                '}' + "\n";
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    public EightDagramsInfoModel cloneSelf() {
        try {
            EightDagramsInfoModel model = (EightDagramsInfoModel) clone();
            return model;
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return new EightDagramsInfoModel();
    }
}
